/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.os.dao.ephimov;

import java.io.*;

/**
 *
 * @author shalash
 */
public class Mylogger {
    private final String FileLog = "C:\\MyLog.txt";
    private RandomAccessFile arf;
    public Mylogger() {

    }
    
    public void writeLog(String log){
        try {
            arf = new RandomAccessFile(FileLog, "rw");
            arf.seek(arf.length());
            arf.writeChars(log);
            arf.close();
        } catch (IOException e) {
            e.printStackTrace();
        }        
    }
    

    
    
}
